package adapter;

import android.support.annotation.Nullable;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import bean.AllNoticeBean;
import bean.ItemBean;
import bean.NoteCategoryBean;
import student.andlei.com.student.R;

public class AmendNoteAdapter extends BaseQuickAdapter<NoteCategoryBean,BaseViewHolder> {
    public AmendNoteAdapter(int layoutResId, @Nullable List<NoteCategoryBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, NoteCategoryBean item) {
            helper.setText(R.id.tv_name,""+item.category_name);
            if(item.isSelect==1){
                helper.getView(R.id.img_select).setVisibility(View.VISIBLE);
            }else {
                helper.getView(R.id.img_select).setVisibility(View.GONE);
            }
    }
}
